package cn.gorit.common.exception;

import cn.gorit.common.enums.ResultEnums;

/**
 * @version v1.0
 * @Classname ResourceException
 * @Description TODO
 * @Author CodingGorit
 * @Created on 2021/4/14 15:07
 * @IDLE IntelliJ IDEA
 **/
public class ResourceException extends BaseException {
    public ResourceException() {
        super();
    }

    public ResourceException(ResultEnums resultNum) {
        super(resultNum);
    }

    public ResourceException(ResultEnums resultNum, Throwable cause) {
        super(resultNum, cause);
    }

    public ResourceException(Throwable cause) {
        super(cause);
    }

    public ResourceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public ResourceException(String msg) {
        super(msg);
    }

    public ResourceException(Integer errorCode, String msg) {
        super(errorCode, msg);
    }

    @Override
    public Integer getErrorCode() {
        return super.getErrorCode();
    }

    @Override
    public void setErrorCode(Integer errorCode) {
        super.setErrorCode(errorCode);
    }
}
